<template>
  <div>
    <Echart
      :options="options"
      id="centreLeft1Chart"
      height="2.5375rem"
      width="3.4rem"
    ></Echart>
  </div>
</template>

<script>
import Echart from '@/common/echart'
export default {
  data () {
    return {
      options: {},
    };
  },
  components: {
    Echart,
  },
  props: {
    cdata: {
      type: Object,
      default: () => ({})
    },
  },
  watch: {
    cdata: {
      handler (newData) {
        this.options = {
          color: [
            "#11FFD7",
            "#CDCDCD",
          ],
          tooltip: {
            trigger: "item",
          },
          series: [
            {
              type: "pie",
              radius: '50%',
              data: newData.seriesData
            }
          ]
        }
      },
      immediate: true,
      deep: true
    }
  }
};
</script>

<style lang="scss" scoped>
</style>